<?php
	mysql_connect("localhost", "root", "%Tg34fv1")or die("cannot connect"); 
	mysql_select_db("wordWaffle")or die("cannot select DB");
	$gameID = mysql_real_escape_string(stripslashes($_GET['gameID']));
	$results = mysql_query("SELECT * FROM gameStatus WHERE gameID=$gameID");
	if ($row = mysql_fetch_assoc($results))
		echo $row['status'];
	else
		echo 0;
	return;
?>